#ifndef __UI_H__
#define __UI_H__

#include "gd32f30x.h"

typedef struct MYTime
{
    uint8_t hour;
    uint8_t min;
    uint8_t sec;
    uint16_t year;
    char month[4];
    uint8_t month_day;
    char weekday[4];
}MYTime;
typedef struct menu_option_Typedef
{
    char *option_name;

    struct menu_option_Typedef *pre_option;
    struct menu_option_Typedef *next_option;

    struct menu_Typedef *parent_menu;
    struct menu_Typedef *child_menu;
    const uint8_t *option_img;
    const uint8_t *option_img_small;

}menu_option_Typedef;
typedef struct menu_Typedef
{
    char *name;
    menu_option_Typedef *option;  //指向一个option
    struct menu_Typedef *parent_menu;    //如果没有父菜单，就代表这个是第一个菜单
    uint8_t current_index;
    uint8_t num;
}menu_Typedef;




void change_mainpage(void);
void u8g2_init_task(void *parameters);
void ui_show_task(void *parameters);
void show_mqtt_connecting(void);
void show_one_Task(void *parameters);
void show_two_task(void *parameters);


#endif 
